//
//  CYGlobal.h
//  tmpForProject
//
//  Created by baidu on 6/15/16.
//  Copyright © 2016 caoyuan. All rights reserved.
//

#import <Foundation/Foundation.h>
// 屏幕大小相关
#define DeviceHeight [UIScreen mainScreen].bounds.size.height
#define DeviceWidth [UIScreen mainScreen].bounds.size.width
#define ViewHeight (DeviceHeight - 64)
#define StateBarHeight 20
#define TabBarHeight 50
#define NavigationBarHeight 44
#define MainHeight (DeviceHeight - StateBarHeight)
#define MainWidth DeviceWidth
#define ViewFrame RECT(0, 64, DeviceWidth, ViewHeight)

#define iPhone4 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 960), [[UIScreen mainScreen] currentMode].size) : NO)
#define iPhone5 ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(640, 1136), [[UIScreen mainScreen] currentMode].size) : NO)

@interface CYGlobal : NSObject

@end
